<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login Page</title>
    </head>
    <body>
        <h1>Login</h1>
        <%
                    String error = (String) request.getSession().getAttribute("handling.error");
                    if (error != null) {
        %>
        <font color="red"><%=error%></font>
        <%
                        request.getSession().removeAttribute("handling.error");
                    }
        %>
        <form action="login" method="POST">
            <table>
                <tr>
                    <td>Username</td>
                    <td><input type ="text" name="username" /></td>
                </tr>
                <tr>
                    <td>Password</td>
                    <td><input type="password" name="password"/></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="login"/></td>
                </tr>
            </table>
        </form>
    </body>
</html>
